package com.util;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: leo
 * Date: 2010-8-12
 * Time: 11:24:07
 * To change this template use File | Settings | File Templates.
 */
public class CountSingleton {
    public static CountSingleton Instance() {
        try {
            if (_instance == null) {
                synchronized (Class.forName("com.util.CountSingleton")) {
                    if (_instance == null) {
                        _instance = new CountSingleton();
                    }
                }
            }
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        return _instance;
    }

protected CountSingleton() {
}
private static CountSingleton _instance = null;
private int totalCount;
private Map countMap;


    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public Map getCountMap() {
        return countMap;
    }

    public void setCountMap(Map countMap) {
        this.countMap = countMap;
    }
}